package com.ai.manager.edu.cms.info.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ai.dao.edu.cms.info.ScheduleJobMapper;
import com.ai.manager.edu.cms.info.ScheduleJobManager;
import com.ai.model.edu.cms.info.ScheduleJob;
import com.ai.model.edu.cms.info.dto.ScheduleJobDTO;
import com.ai.model.edu.cms.info.vo.ScheduleJobVO;

@Component("scheduleJobManager")
public class ScheduleJobManagerImpl implements ScheduleJobManager{
	
	@Resource
	private ScheduleJobMapper scheduleJobMapper;

	@Override
	public void insertScheduleJob(ScheduleJob job) {
		scheduleJobMapper.insertScheduleJob(job);
	}

	@Override
	public List<ScheduleJobVO> findScheduleJobsByDTO(ScheduleJobDTO dto) {
		return scheduleJobMapper.findScheduleJobsByDTO(dto);
	}

	@Override
	public int countFindScheduleJobsByDTO(ScheduleJobDTO dto) {
		return scheduleJobMapper.countFindScheduleJobsByDTO(dto);
	}

	@Override
	public void updateScheduleJobByDTO(ScheduleJobDTO dto) {
		scheduleJobMapper.updateScheduleJobByDTO(dto);
	}

	@Override
	public ScheduleJobVO findScheduleJobsById(Long id) {
		return scheduleJobMapper.findScheduleJobsById(id);
	}

}
